From: Michael Albinus Date: Thu, 24 Jan 2019 10:06:38 +0000 (+0100) Subject: Fix error in Tramp's encoding check X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~4131 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0744c35307d544d960c9d7628ea91ad722ff6217;p=emacs.git Fix error in Tramp's encoding check * lisp/net/tramp-sh.el (tramp-find-inline-encoding): Use `tramp-get-connection-buffer'. --- diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index d0e7357f8f5..c578a73f469 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -4499,7 +4499,7 @@ Goes through the list `tramp-local-coding-commands' and t) (throw 'wont-work-remote nil)) - (with-current-buffer (tramp-get-buffer vec) + (with-current-buffer (tramp-get-connection-buffer vec) (goto-char (point-min)) (unless (looking-at-p (regexp-quote magic)) (throw 'wont-work-remote nil)))